home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / gas_251.zip / bin_251 / bfd / Makefile.in < prev    next >
Makefile  |  1994-10-12  |  28KB  |  771 lines

  1. #    Makefile template for Configure for the BFD library.
  2. #    Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
  3. #    Written by Cygnus Support.
  4. # This file is part of BFD, the Binary File Descriptor library.
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16.  
  17. srcdir = .
  18.  
  19. prefix = /usr/local
  20.  
  21. exec_prefix = $(prefix)
  22. bindir = $(exec_prefix)/bin
  23. libdir = $(exec_prefix)/lib
  24.  
  25. datadir = $(prefix)/lib
  26. mandir = $(prefix)/man
  27. man1dir = $(mandir)/man1
  28. man2dir = $(mandir)/man2
  29. man3dir = $(mandir)/man3
  30. man4dir = $(mandir)/man4
  31. man5dir = $(mandir)/man5
  32. man6dir = $(mandir)/man6
  33. man7dir = $(mandir)/man7
  34. man8dir = $(mandir)/man8
  35. man9dir = $(mandir)/man9
  36. infodir = $(prefix)/info
  37. includedir = $(prefix)/include
  38. oldincludedir =
  39. docdir = doc
  40.  
  41. SHELL = /bin/sh
  42.  
  43. INSTALL = `cd $(srcdir)/..; pwd`/install.sh -c
  44. INSTALL_PROGRAM = $(INSTALL)
  45. INSTALL_DATA = $(INSTALL)
  46.  
  47. AR = ar
  48. AR_FLAGS = rc
  49. CFLAGS = -g
  50. BISON = bison
  51. MAKEINFO = makeinfo
  52. RANLIB = ranlib
  53.  
  54. CC_FOR_BUILD = $(CC)
  55.  
  56. INCDIR = $(srcdir)/../include
  57. CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
  58. DEP = mkdep
  59.  
  60. SUBDIRS = doc
  61.  
  62.  
  63. TARGETLIB = libbfd.a
  64.  
  65. # bfd.h goes here, for now
  66. BFD_H = bfd.h
  67.  
  68. # Some of these files should be in BFD*_BACKENDS below, but some programs
  69. # won't link without them.  So, in order for some of the minimal-bfd
  70. # hacks to work, they're also included here for now.
  71. #    gdb: elf.o
  72. #    objdump: elf.o
  73. #
  74. # Also, Jim Kingdon notes:
  75. # Writing S-records should be included in all (or at least most)
  76. # *-*-coff, *-*-aout, etc., configurations, because people will want to
  77. # be able to use objcopy to create S-records.  (S-records are not useful
  78. # for the debugger, so if you are downloading things as S-records you
  79. # need two copies of the executable, one to download and one for the
  80. # debugger).
  81. BFD_LIBS = \
  82.     archive.o archures.o bfd.o cache.o coffgen.o core.o \
  83.     format.o init.o libbfd.o opncls.o reloc.o \
  84.     section.o syms.o targets.o hash.o linker.o \
  85.     elf.o srec.o
  86.  
  87. # This list is alphabetized to make it easier to keep in sync
  88. # with the decls and initializer in archures.c.
  89. ALL_MACHINES = \
  90.     cpu-a29k.o \
  91.     cpu-alpha.o \
  92.     cpu-arm.o \
  93.     cpu-h8300.o \
  94.     cpu-h8500.o \
  95.     cpu-hppa.o \
  96.     cpu-i386.o \
  97.     cpu-i960.o \
  98.     cpu-m68k.o \
  99.     cpu-m88k.o \
  100.     cpu-mips.o \
  101.     cpu-ns32k.o \
  102.     cpu-powerpc.o \
  103.     cpu-rs6000.o \
  104.     cpu-sh.o \
  105.     cpu-sparc.o \
  106.     cpu-vax.o \
  107.     cpu-we32k.o \
  108.     cpu-z8k.o
  109.  
  110. # The .o files needed by all of the 32 bit vectors that are configured into
  111. # target_vector in targets.c if configured with --enable-targets=all.
  112. BFD32_BACKENDS = \
  113.     aout-adobe.o \
  114.     aout-ns32k.o \
  115.     aout0.o \
  116.     aout32.o \
  117.     bout.o \
  118.     cf-i386lynx.o \
  119.     cf-m68klynx.o \
  120.     cf-sparclynx.o \
  121.     coff-a29k.o \
  122.     coff-apollo.o \
  123.     coff-h8300.o \
  124.     coff-h8500.o \
  125.     coff-i386.o \
  126.     coff-go32.o \
  127.     coff-i960.o \
  128.     coff-m68k.o \
  129.     coff-m88k.o \
  130.     coff-mips.o \
  131.     coff-rs6000.o \
  132.     coff-sh.o \
  133.     coff-sparc.o \
  134.     coff-u68k.o \
  135.     coff-we32k.o \
  136.     coff-z8k.o \
  137.     cofflink.o \
  138.     ecoff.o \
  139.     ecofflink.o \
  140.     elf32-gen.o \
  141.     elf32-hppa.o \
  142.     elf32-i386.o \
  143.     elf32-i860.o \
  144.     elf32-m68k.o \
  145.     elf32-m88k.o \
  146.     elf32-mips.o \
  147.     elf32-ppc.o \
  148.     elf32-sparc.o \
  149.     elf32.o \
  150.     hp300hpux.o \
  151.     som.o \
  152.     i386aout.o \
  153.     i386bsd.o \
  154.     i386linux.o \
  155.     i386lynx.o \
  156.     i386netbsd.o \
  157.     i386mach3.o \
  158.     i386os9k.o \
  159.     ieee.o \
  160.     m68klynx.o \
  161.     m88kmach3.o \
  162.     mipsbsd.o \
  163.     newsos3.o \
  164.     nlm.o \
  165.     nlm32-i386.o \
  166.     nlm32-sparc.o \
  167.     nlm32-ppc.o \
  168.     nlm32.o \
  169.     ns32knetbsd.o \
  170.     oasys.o \
  171.     pc532-mach.o \
  172.     reloc16.o \
  173.     sparclynx.o \
  174.     sparcnetbsd.o \
  175.     stab-syms.o \
  176.     sunos.o
  177.  
  178. # The .o files needed by all of the 64 bit vectors that are configured into
  179. # target_vector in targets.c if configured with --enable-targets=all
  180. # and --enable-64-bit-bfd.
  181. BFD64_BACKENDS = \
  182.     aout64.o \
  183.     coff-alpha.o \
  184.     demo64.o \
  185.     elf64-gen.o \
  186.     elf64-sparc.o \
  187.     elf64.o \
  188.     nlm32-alpha.o \
  189.     nlm64.o
  190.  
  191. OPTIONAL_BACKENDS = \
  192.     aix386-core.o \
  193.     hpux-core.o \
  194.     irix-core.o \
  195.     lynx-core.o \
  196.     osf-core.o \
  197.     trad-core.o \
  198.     cisco-core.o
  199.  
  200. # These are defined by configure.in:
  201. # WORDSIZE=32
  202. # BFD_BACKENDS = $(BFD32_BACKENDS)
  203.  
  204. all:
  205.  
  206. #### host and target dependent Makefile fragments come in here.
  207. ###
  208.  
  209. FLAGS_TO_PASS = \
  210.     "prefix=$(prefix)" \
  211.     "exec_prefix=$(exec_prefix)" \
  212.     "against=$(against)" \
  213.     "AR=$(AR)" \
  214.     "AR_FLAGS=$(AR_FLAGS)" \
  215.     "CC=$(CC)" \
  216.     "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
  217.     "CFLAGS=$(CFLAGS)" \
  218.     "RANLIB=$(RANLIB)" \
  219.     "MAKEINFO=$(MAKEINFO)" \
  220.     "INSTALL=$(INSTALL)" \
  221.     "INSTALL_DATA=$(INSTALL_DATA)" \
  222.     "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  223.     "BISON=$(BISON)"
  224.  
  225. ALL_CFLAGS=$(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES)
  226. .c.o:
  227.     $(CC) -c $(ALL_CFLAGS) $<
  228.  
  229. # C source files that correspond to .o's.
  230. CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c \
  231.      archures.c coff-i386.c coff-go32.c aout64.c aout32.c sunos.c demo64.c \
  232.      coff-i960.c srec.c tekhex.c oasys.c ieee.c aout0.c \
  233.      ecoff.c ecofflink.c coff-m68k.c coff-u68k.c coff-apollo.c \
  234.      coff-a29k.c coff-rs6000.c coff-sparc.c coffgen.c format.c \
  235.      section.c core.c syms.c stab-syms.c reloc.c init.c \
  236.      coff-m88k.c coff-mips.c coff-sh.c trad-core.c cisco-core.c newsos3.c \
  237.      i386aout.c i386linux.c i386mach3.c i386netbsd.c i386os9k.c \
  238.      bout.c aout-adobe.c coff-we32k.c \
  239.      i386bsd.c i386dynix.c cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c \
  240.      cpu-m88k.c cpu-vax.c cpu-mips.c cpu-a29k.c cpu-i386.c cpu-powerpc.c \
  241.      cpu-rs6000.c coff-h8300.c som.c cpu-hppa.c cpu-we32k.c reloc16.c \
  242.      mipsbsd.c cpu-sh.c \
  243.      elf.c elf32.c elf32-sparc.c elf32-i386.c elf32-i860.c elf32-m68k.c \
  244.      elf32-hppa.c elf32-m88k.c elf32-mips.c elf32-gen.c elf32-ppc.c \
  245.      elf64.c elf64-gen.c elf64-sparc.c \
  246.      nlm.c nlm32.c nlm32-i386.c nlm32-sparc.c nlm32-alpha.c \
  247.      nlm64.c coff-alpha.c cpu-alpha.c nlm32-ppc.c \
  248.      hp300bsd.c hp300hpux.c \
  249.      i386lynx.c cf-i386lynx.c m68klynx.c cf-m68klynx.c \
  250.      sparclynx.c cf-sparclynx.c aix386-core.c hpux-core.c \
  251.      irix-core.c lynx-core.c osf-core.c hash.c linker.c cofflink.c \
  252.      ns32knetbsd.c sparcnetbsd.c
  253.  
  254. HFILES = aout-target.h aoutf1.h aoutx.h coffcode.h \
  255.      coffswap.h ecoffswap.h elf32-hppa.h elf32-target.h elf64-target.h \
  256.      elfcode.h hppa_stubs.h libaout.h libbfd.h \
  257.      libcoff.h libecoff.h libelf.h libhppa.h libieee.h libnlm.h \
  258.      liboasys.h nlm-target.h nlmcode.h som.h genlink.h
  259.  
  260. STAGESTUFF = $(TARGETLIB) $(OFILES)
  261.  
  262. all: Makefile $(TARGETLIB) 
  263.     @$(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
  264.  
  265. .NOEXPORT:
  266. MAKEOVERRIDES=
  267.  
  268. .PHONY: check installcheck
  269. check:
  270.     @echo No testsuites exist for the BFD library. Nothing to check.
  271.  
  272. installcheck:
  273.     @echo No testsuites exist for the BFD library. Nothing to check.
  274.  
  275. info dvi : force
  276.     @$(MAKE) subdir_do DO=$@ "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
  277.  
  278. clean-info:
  279.     @$(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
  280.     
  281. install-info: force
  282.     @$(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
  283.  
  284. diststuff: info
  285.  
  286. # Various kinds of .o files to put in libbfd.a:
  287. # BFD_LIBS    Generic routines, always needed.
  288. # BFD_BACKENDS    Routines the configured targets need.
  289. # BFD_MACHINES    Architecture-specific routines the configured targets need.
  290. # HDEPFILES    Routines the host needs, regardless of target.
  291. # TDEPFILES    Routines the target needs, regardless of host.
  292. OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) $(HDEPFILES) $(TDEPFILES)
  293.  
  294. ofiles : Makefile
  295.     rm -f ofiles
  296.     f=""; \
  297.     for i in $(OFILES) ; do \
  298.       case " $$f " in \
  299.         *" $$i "*) ;; \
  300.         *) f="$$f $$i" ;; \
  301.       esac ; \
  302.     done ; \
  303.     echo $$f > ofiles
  304.  
  305. $(TARGETLIB): $(OFILES) ofiles
  306.     rm -f $(TARGETLIB)
  307.     @echo ofiles = `cat ofiles`
  308.     $(AR) $(AR_FLAGS) $(TARGETLIB) `cat ofiles`
  309.     $(RANLIB) $(TARGETLIB)
  310.  
  311. # When compiling archures.c and targets.c, supply the default target
  312. # info from configure.
  313.  
  314.  
  315. targets.o: targets.c Makefile
  316.     $(CC) -c $(ALL_CFLAGS) $(TDEFAULTS) $<
  317.  
  318. archures.o: archures.c Makefile
  319.     $(CC) -c $(ALL_CFLAGS) $(TDEFAULTS) $<
  320.  
  321. subdir_do: force
  322.     @for i in $(DODIRS); do \
  323.         if [ -d ./$$i ] ; then \
  324.             if (cd ./$$i; \
  325.                 $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \
  326.             else exit 1 ; fi ; \
  327.         else true ; fi ; \
  328.     done
  329.  
  330. tags etags: TAGS
  331.  
  332. TAGS: force
  333.     etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
  334.  
  335. do_mostlyclean:
  336.     rm -f *.o *~ core *.E *.p *.ip aout-params.h gen-aout
  337. do_clean: do_mostlyclean
  338.     rm -f libbfd.a TAGS bfd.h stmp-bfd.h ofiles
  339. do_distclean: do_clean
  340.     rm -f Makefile config.status sysdep.h
  341.  
  342. # Should we remove $(srcdir)/libcoff.h $(srcdir)/libbfd.h $(srcdir)/bfd-in2.h?
  343. # make-stds.texi says it depends on whether they can be regenerated using
  344. # this makefile.  Well, they can, but only via an explicit "make headers";
  345. # the makefile does not regenerate them as needed.  So I guess we should not
  346. # remove them in realclean.
  347. do_realclean: do_distclean
  348.  
  349. mostlyclean: do_mostlyclean
  350.     $(MAKE) subdir_do DO=mostlyclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
  351. clean: do_clean
  352.     $(MAKE) subdir_do DO=clean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
  353. distclean:
  354.     $(MAKE) subdir_do DO=distclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
  355.     $(MAKE) do_distclean
  356. clobber realclean:
  357.     $(MAKE) subdir_do DO=realclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
  358.     $(MAKE) do_realclean
  359.  
  360. # Mark everything as depending on config.status, since the timestamp on
  361. # sysdep.h might actually move backwards if we reconfig and relink it
  362. # to a different hosts/h-xxx.h file.  This will force a recompile anyway.
  363. BFD_H_DEPS= $(INCDIR)/ansidecl.h $(INCDIR)/obstack.h
  364. RECONFIG = config.status
  365. $(BFD_LIBS):  libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS)
  366. $(BFD_MACHINES):  libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS)
  367. $(BFD_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS)
  368. $(OPTIONAL_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS)
  369.  
  370. # Get around a Sun Make bug in SunOS 4.1.1 with VPATH
  371. cpu-i386.o:cpu-i386.c
  372. cpu-z8k.o: cpu-z8k.c
  373. cpu-h8500.o: cpu-h8500.c
  374. cpu-we32k.o: cpu-we32k.c
  375.  
  376. saber:
  377.     #suppress 65 on bfd_map_over_sections 
  378.     #suppress 66 on bfd_map_over_sections 
  379.     #suppress 67 on bfd_map_over_sections 
  380.     #suppress 68 on bfd_map_over_sections 
  381.     #suppress 69 on bfd_map_over_sections 
  382.     #suppress 70 on bfd_map_over_sections 
  383.     #suppress 110 in bfd_map_over_sections 
  384.     #suppress 112 in bfd_map_over_sections 
  385.     #suppress 530 
  386.     #suppress 590 in swap_exec_header 
  387.     #suppress 590 in _bfd_dummy_core_file_matches_executable_p 
  388.     #suppress 590 in bfd_dont_truncate_arname
  389.     #suppress 590 on ignore 
  390.     #suppress 590 on abfd 
  391.     #setopt load_flags $(CFLAGS)
  392.     #load $(CFILES)
  393.  
  394.  
  395. #-----------------------------------------------------------------------------
  396. #        'STANDARD' GNU/960 TARGETS BELOW THIS POINT
  397. #
  398. # 'VERSION' file must be present and contain a string of the form "x.y"
  399. #-----------------------------------------------------------------------------
  400.  
  401. ver960.c: FORCE
  402.     rm -f ver960.c
  403.     echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
  404.  
  405.  
  406. # This target should be invoked before building a new release.
  407. # 'VERSION' file must be present and contain a string of the form "x.y"
  408. #
  409. roll:
  410.     @V=`cat VERSION`        ; \
  411.     MAJ=`sed 's/\..*//' VERSION`    ; \
  412.     MIN=`sed 's/.*\.//' VERSION`    ; \
  413.     V=$$MAJ.`expr $$MIN + 1`    ; \
  414.     rm -f VERSION            ; \
  415.     echo $$V >VERSION        ; \
  416.     echo Version $$V
  417.  
  418. # Dummy target to force execution of dependent targets.
  419. #
  420. force:
  421.  
  422. install:
  423.     $(INSTALL_DATA) libbfd.a $(libdir)/libbfd.a
  424.     $(RANLIB) $(libdir)/libbfd.a
  425. # Install BFD include file, and others that it needs.  Install them
  426. # both in GCC's include directory, and in the system include dir
  427. # if configured as $(oldincludedir) -- which it usually isnt.
  428.     $(INSTALL_DATA) $(BFD_H) $(includedir)/bfd.h
  429.     $(INSTALL_DATA) $(INCDIR)/ansidecl.h $(includedir)/ansidecl.h
  430.     $(INSTALL_DATA) $(INCDIR)/obstack.h $(includedir)/obstack.h
  431.     -if test -z "$(oldincludedir)"; then true; else \
  432.     test -d $(oldincludedir) || mkdir $(oldincludedir); \
  433.     $(INSTALL_DATA) $(BFD_H) $(oldincludedir)/bfd.h; \
  434.     $(INSTALL_DATA) $(INCDIR)/ansidecl.h $(oldincludedir)/ansidecl.h; \
  435.     $(INSTALL_DATA) $(INCDIR)/obstack.h $(oldincludedir)/obstack.h; \
  436.     $(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS); \
  437.     fi
  438.  
  439. Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag)
  440.     $(SHELL) config.status
  441.  
  442. # Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
  443. .dep: dep.sed $(CFILES) $(HFILES) bfd.h
  444.     rm -f .dep1
  445.     $(MAKE) DEP=$(DEP) .dep1
  446.     sed -f dep.sed <.dep1 >.dep
  447.  
  448. # This rule really wants a mkdep that runs "gcc -MM".
  449. .dep1: $(CFILES)
  450.     rm -f .dep2
  451.     echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
  452.     $(DEP) -f .dep2 $(ALL_CFLAGS) $?
  453.     $(srcdir)/../move-if-change .dep2 .dep1
  454.  
  455. dep.sed: dep-in.sed config.status
  456.     sed <$(srcdir)/dep-in.sed >dep.sed    \
  457.         -e 's!@BFD_H@!$(BFD_H)!'    \
  458.         -e 's!@INCDIR@!$(INCDIR)!'    \
  459.         -e 's!@srcdir@!$(srcdir)!'
  460.  
  461. dep: .dep
  462.     sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
  463.     cat .dep >> tmp-Makefile
  464.     $(srcdir)/../move-if-change tmp-Makefile Makefile
  465.  
  466. dep-in: .dep
  467.     sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
  468.     cat .dep >> tmp-Makefile.in
  469.     $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
  470.  
  471. host-aout.o: Makefile
  472.  
  473. # The following program can be used to generate a simple config file
  474. # which can be folded into an h-XXX file for a new host, with some editing.
  475. aout-params.h: gen-aout
  476.     ./gen-aout host > aout-params.h
  477. gen-aout: $(srcdir)/gen-aout.c Makefile
  478.     $(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c
  479.  
  480. BFDIN_H= $(srcdir)/bfd-in2.h
  481.  
  482. $(BFD_H): stmp-bfd.h ; @true
  483.  
  484. # The file ../include/bfd.h is from earlier attempts to get this right.
  485. # If the file is still there, kill it.
  486. # The weird sh*t with grep is to avoid printing "exit 1 (ignored)" type
  487. # messages from make, and avoid various ways in which different versions
  488. # of make will screw up exit status checks.
  489. #    -grep...        -> make prints "exit 1" message
  490. #    grep ... ; exit 0    -> sun(?) make notices grep failure
  491. #    grep ... || exit 0    -> bsd4.4 make still notices
  492. #    if grep ...        -> seems okay so far
  493. stmp-bfd.h : $(srcdir)/bfd-in2.h Makefile
  494.     rm -f bfd.h-new 64 ../include/bfd.h
  495.     if grep BFD_HOST_64_BIT sysdep.h > 64 2>/dev/null; then true; \
  496.     else true; fi
  497.     sed -e 's/@WORDSIZE@/$(WORDSIZE)/' \
  498.         -e "s/@VERSION@/`cat $(srcdir)/VERSION`/" \
  499.         -e '/64-bit.*sysdep.h/ r 64' \
  500.         < $(srcdir)/bfd-in2.h \
  501.         > bfd.h-new
  502.     $(srcdir)/../move-if-change bfd.h-new $(BFD_H)
  503.     rm -f 64
  504.     touch stmp-bfd.h
  505.  
  506. # Could really use a "copy-if-change"...
  507. headers:
  508.     (cd $(docdir); $(MAKE) protos $(FLAGS_TO_PASS))
  509.     cp $(docdir)/bfd.h bfd-in2.h-new
  510.     $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h
  511.     cp $(docdir)/libbfd.h libbfd.h-new
  512.     $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h
  513.     cp $(docdir)/libcoff.h libcoff.h-new
  514.     $(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h
  515.  
  516. bfd.info:
  517.     (cd $(docdir); $(MAKE) bfd.info $(FLAGS_TO_PASS))
  518.  
  519. bfd.dvi:
  520.     (cd $(docdir); $(MAKE) bfd.dvi $(FLAGS_TO_PASS))
  521.  
  522. bfd.ps: 
  523.     (cd $(docdir); $(MAKE) bfd.ps $(FLAGS_TO_PASS))
  524.  
  525. # What appears below is generated by a hacked mkdep using gcc -MM.
  526.  
  527. # DO NOT DELETE THIS LINE -- mkdep uses it.
  528. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  529.  
  530. libbfd.o: libbfd.c
  531. opncls.o: opncls.c
  532. bfd.o: bfd.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \
  533.   $(INCDIR)/coff/sym.h libcoff.h libecoff.h $(INCDIR)/coff/ecoff.h \
  534.   libelf.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
  535.   $(INCDIR)/elf/external.h
  536. archive.o: archive.c $(INCDIR)/aout/ar.h $(INCDIR)/aout/ranlib.h
  537. targets.o: targets.c
  538. cache.o: cache.c
  539. archures.o: archures.c
  540. coff-i386.o: coff-i386.c $(INCDIR)/coff/i386.h $(INCDIR)/coff/internal.h \
  541.   libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
  542. coff-go32.o: coff-go32.c $(INCDIR)/coff/i386.h $(INCDIR)/coff/internal.h \
  543.   libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
  544. aout64.o: aout64.c aoutx.h $(INCDIR)/bfdlink.h libaout.h \
  545.   $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
  546.   $(INCDIR)/aout/ar.h
  547. aout32.o: aout32.c aoutx.h $(INCDIR)/bfdlink.h libaout.h \
  548.   $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
  549.   $(INCDIR)/aout/ar.h
  550. sunos.o: sunos.c $(INCDIR)/bfdlink.h libaout.h aoutf1.h \
  551.   $(INCDIR)/aout/sun4.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
  552.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h aout-target.h
  553. demo64.o: demo64.c aoutf1.h $(INCDIR)/aout/sun4.h libaout.h \
  554.   $(INCDIR)/bfdlink.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
  555.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h aout-target.h
  556. coff-i960.o: coff-i960.c $(INCDIR)/coff/i960.h $(INCDIR)/coff/internal.h \
  557.   libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
  558. srec.o: srec.c
  559. tekhex.o: tekhex.c
  560. oasys.o: oasys.c $(INCDIR)/oasys.h liboasys.h
  561. ieee.o: ieee.c $(INCDIR)/ieee.h libieee.h
  562. aout0.o: aout0.c aoutf1.h $(INCDIR)/aout/sun4.h libaout.h \
  563.   $(INCDIR)/bfdlink.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
  564.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h aout-target.h
  565. ecoff.o: ecoff.c $(INCDIR)/bfdlink.h $(INCDIR)/aout/ar.h \
  566.   $(INCDIR)/aout/ranlib.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
  567.   libaout.h $(INCDIR)/aout/aout64.h $(INCDIR)/coff/internal.h \
  568.   $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h \
  569.   libcoff.h libecoff.h
  570. ecofflink.o: ecofflink.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \
  571.   $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h
  572. coff-m68k.o: coff-m68k.c $(INCDIR)/coff/m68k.h $(INCDIR)/coff/internal.h \
  573.   libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
  574. coff-u68k.o: coff-u68k.c coff-m68k.c $(INCDIR)/coff/m68k.h \
  575.   $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \
  576.   coffcode.h coffswap.h
  577. coff-apollo.o: coff-apollo.c $(INCDIR)/coff/apollo.h \
  578.   $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \
  579.   coffcode.h coffswap.h
  580. coff-a29k.o: coff-a29k.c $(INCDIR)/coff/a29k.h $(INCDIR)/coff/internal.h \
  581.   libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
  582. coff-rs6000.o: coff-rs6000.c $(INCDIR)/coff/internal.h \
  583.   $(INCDIR)/coff/rs6000.h libcoff.h $(INCDIR)/bfdlink.h \
  584.   coffcode.h coffswap.h
  585. coff-sparc.o: coff-sparc.c $(INCDIR)/coff/sparc.h $(INCDIR)/coff/internal.h \
  586.   libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
  587. coffgen.o: coffgen.c $(INCDIR)/coff/internal.h libcoff.h \
  588.   $(INCDIR)/bfdlink.h
  589. format.o: format.c
  590. section.o: section.c
  591. core.o: core.c
  592. syms.o: syms.c $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def
  593. stab-syms.o: stab-syms.c libaout.h $(INCDIR)/bfdlink.h \
  594.   $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab.def
  595. reloc.o: reloc.c $(INCDIR)/bfdlink.h
  596. init.o: init.c
  597. coff-m88k.o: coff-m88k.c $(INCDIR)/coff/m88k.h $(INCDIR)/coff/internal.h \
  598.   libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
  599. coff-mips.o: coff-mips.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \
  600.   $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h \
  601.   $(INCDIR)/coff/mips.h libcoff.h libecoff.h coffswap.h \
  602.   ecoffswap.h
  603. coff-sh.o: coff-sh.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/sh.h \
  604.   $(INCDIR)/coff/internal.h libcoff.h coffcode.h coffswap.h
  605. trad-core.o: trad-core.c libaout.h $(INCDIR)/bfdlink.h
  606. cisco-core.o: cisco-core.c
  607. newsos3.o: newsos3.c $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
  608.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h libaout.h \
  609.   $(INCDIR)/bfdlink.h aout-target.h
  610. i386aout.o: i386aout.c libaout.h $(INCDIR)/bfdlink.h \
  611.   aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
  612.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
  613. i386linux.o: i386linux.c $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
  614.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h libaout.h \
  615.   $(INCDIR)/bfdlink.h aout-target.h
  616. i386mach3.o: i386mach3.c $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
  617.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h libaout.h \
  618.   $(INCDIR)/bfdlink.h aout-target.h
  619. i386netbsd.o: i386netbsd.c netbsd.h libaout.h $(INCDIR)/bfdlink.h \
  620.   aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
  621.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
  622. i386os9k.o: i386os9k.c $(INCDIR)/bfdlink.h libaout.h \
  623.   $(INCDIR)/os9k.h
  624. bout.o: bout.c $(INCDIR)/bfdlink.h genlink.h $(INCDIR)/bout.h \
  625.   $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def libaout.h
  626. aout-adobe.o: aout-adobe.c $(INCDIR)/aout/adobe.h $(INCDIR)/aout/stab_gnu.h \
  627.   $(INCDIR)/aout/stab.def libaout.h $(INCDIR)/bfdlink.h
  628. coff-we32k.o: coff-we32k.c $(INCDIR)/coff/we32k.h $(INCDIR)/coff/internal.h \
  629.   libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h
  630. i386bsd.o: i386bsd.c libaout.h $(INCDIR)/bfdlink.h \
  631.   aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
  632.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
  633. i386dynix.o: i386dynix.c $(INCDIR)/aout/dynix3.h libaout.h \
  634.   $(INCDIR)/bfdlink.h aout-target.h $(INCDIR)/aout/aout64.h \
  635.   $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
  636. cpu-h8300.o: cpu-h8300.c
  637. cpu-i960.o: cpu-i960.c
  638. cpu-sparc.o: cpu-sparc.c
  639. cpu-m68k.o: cpu-m68k.c
  640. cpu-m88k.o: cpu-m88k.c
  641. cpu-vax.o: cpu-vax.c
  642. cpu-mips.o: cpu-mips.c
  643. cpu-a29k.o: cpu-a29k.c
  644. cpu-i386.o: cpu-i386.c
  645. cpu-powerpc.o: cpu-powerpc.c
  646. cpu-rs6000.o: cpu-rs6000.c
  647. coff-h8300.o: coff-h8300.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/h8300.h \
  648.   $(INCDIR)/coff/internal.h libcoff.h coffcode.h coffswap.h
  649. som.o: som.c
  650. cpu-hppa.o: cpu-hppa.c
  651. cpu-we32k.o: cpu-we32k.c
  652. reloc16.o: reloc16.c $(INCDIR)/bfdlink.h genlink.h \
  653.   $(INCDIR)/coff/internal.h libcoff.h
  654. mipsbsd.o: mipsbsd.c libaout.h $(INCDIR)/bfdlink.h \
  655.   aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
  656.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
  657. cpu-sh.o: cpu-sh.c
  658. elf.o: elf.c $(INCDIR)/bfdlink.h libelf.h $(INCDIR)/elf/common.h \
  659.   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h
  660. elf32.o: elf32.c elfcode.h $(INCDIR)/bfdlink.h libelf.h \
  661.   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h
  662. elf32-sparc.o: elf32-sparc.c $(INCDIR)/bfdlink.h libelf.h \
  663.   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
  664.   elf32-target.h
  665. elf32-i386.o: elf32-i386.c $(INCDIR)/bfdlink.h libelf.h \
  666.   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
  667.   elf32-target.h
  668. elf32-i860.o: elf32-i860.c libelf.h $(INCDIR)/elf/common.h \
  669.   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
  670.   elf32-target.h
  671. elf32-m68k.o: elf32-m68k.c libelf.h $(INCDIR)/elf/common.h \
  672.   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
  673.   elf32-target.h
  674. elf32-hppa.o: elf32-hppa.c $(INCDIR)/bfdlink.h libelf.h \
  675.   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
  676.   elf32-hppa.h libhppa.h $(INCDIR)/elf/hppa.h hppa_stubs.h \
  677.   elf32-target.h
  678. elf32-m88k.o: elf32-m88k.c libelf.h $(INCDIR)/elf/common.h \
  679.   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
  680.   elf32-target.h
  681. elf32-mips.o: elf32-mips.c $(INCDIR)/bfdlink.h genlink.h \
  682.   libelf.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
  683.   $(INCDIR)/elf/external.h $(INCDIR)/elf/mips.h $(INCDIR)/coff/sym.h \
  684.   $(INCDIR)/coff/symconst.h $(INCDIR)/coff/internal.h \
  685.   $(INCDIR)/coff/ecoff.h $(INCDIR)/coff/mips.h ecoffswap.h \
  686.   elf32-target.h
  687. elf32-gen.o: elf32-gen.c libelf.h $(INCDIR)/elf/common.h \
  688.   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
  689.   elf32-target.h
  690. elf32-ppc.o: elf32-ppc.c libelf.h $(INCDIR)/elf/common.h \
  691.   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
  692.   elf32-target.h
  693. elf64.o: elf64.c elfcode.h $(INCDIR)/bfdlink.h libelf.h \
  694.   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h
  695. elf64-gen.o: elf64-gen.c libelf.h $(INCDIR)/elf/common.h \
  696.   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
  697.   elf64-target.h
  698. elf64-sparc.o: elf64-sparc.c libelf.h $(INCDIR)/elf/common.h \
  699.   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
  700.   elf64-target.h
  701. nlm.o: nlm.c libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
  702.   $(INCDIR)/nlm/external.h
  703. nlm32.o: nlm32.c nlmcode.h libnlm.h $(INCDIR)/nlm/common.h \
  704.   $(INCDIR)/nlm/internal.h $(INCDIR)/nlm/external.h
  705. nlm32-i386.o: nlm32-i386.c $(INCDIR)/nlm/i386-ext.h \
  706.   libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
  707.   $(INCDIR)/nlm/external.h nlmswap.h nlm-target.h
  708. nlm32-sparc.o: nlm32-sparc.c $(INCDIR)/nlm/sparc32-ext.h \
  709.   libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
  710.   $(INCDIR)/nlm/external.h nlmswap.h nlm-target.h
  711. nlm32-alpha.o: nlm32-alpha.c $(INCDIR)/nlm/alpha-ext.h \
  712.   libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
  713.   $(INCDIR)/nlm/external.h nlmswap.h nlm-target.h
  714. nlm64.o: nlm64.c nlmcode.h libnlm.h $(INCDIR)/nlm/common.h \
  715.   $(INCDIR)/nlm/internal.h $(INCDIR)/nlm/external.h
  716. coff-alpha.o: coff-alpha.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \
  717.   $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h \
  718.   $(INCDIR)/coff/alpha.h libcoff.h libecoff.h coffswap.h \
  719.   ecoffswap.h
  720. cpu-alpha.o: cpu-alpha.c
  721. nlm32-ppc.o: nlm32-ppc.c $(INCDIR)/nlm/ppc-ext.h libnlm.h \
  722.   $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h $(INCDIR)/nlm/external.h \
  723.   nlmswap.h nlm-target.h
  724. hp300bsd.o: hp300bsd.c libaout.h $(INCDIR)/bfdlink.h \
  725.   aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
  726.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
  727. hp300hpux.o: hp300hpux.c $(INCDIR)/aout/hp300hpux.h \
  728.   aoutx.h $(INCDIR)/bfdlink.h libaout.h $(INCDIR)/aout/aout64.h \
  729.   $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h \
  730.   aout-target.h
  731. i386lynx.o: i386lynx.c libaout.h $(INCDIR)/bfdlink.h \
  732.   $(INCDIR)/aout/aout64.h aout-target.h $(INCDIR)/aout/stab_gnu.h \
  733.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
  734. cf-i386lynx.o: cf-i386lynx.c coff-i386.c $(INCDIR)/coff/i386.h \
  735.   $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \
  736.   coffcode.h coffswap.h
  737. m68klynx.o: m68klynx.c libaout.h $(INCDIR)/bfdlink.h \
  738.   $(INCDIR)/aout/aout64.h aout-target.h $(INCDIR)/aout/stab_gnu.h \
  739.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
  740. cf-m68klynx.o: cf-m68klynx.c coff-m68k.c $(INCDIR)/coff/m68k.h \
  741.   $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \
  742.   coffcode.h coffswap.h
  743. sparclynx.o: sparclynx.c $(INCDIR)/aout/sun4.h libaout.h \
  744.   $(INCDIR)/bfdlink.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
  745.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h aout-target.h
  746. cf-sparclynx.o: cf-sparclynx.c coff-sparc.c $(INCDIR)/coff/sparc.h \
  747.   $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h \
  748.   coffcode.h coffswap.h
  749. aix386-core.o: aix386-core.c $(INCDIR)/coff/i386.h \
  750.   $(INCDIR)/coff/internal.h libcoff.h $(INCDIR)/bfdlink.h
  751. hpux-core.o: hpux-core.c
  752. irix-core.o: irix-core.c
  753. lynx-core.o: lynx-core.c
  754. osf-core.o: osf-core.c
  755. hash.o: hash.c
  756. linker.o: linker.c $(INCDIR)/bfdlink.h genlink.h
  757. cofflink.o: cofflink.c $(INCDIR)/bfdlink.h $(INCDIR)/coff/internal.h \
  758.   libcoff.h
  759. ns32knetbsd.o: ns32knetbsd.c netbsd.h libaout.h $(INCDIR)/bfdlink.h \
  760.   aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
  761.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
  762. sparcnetbsd.o: sparcnetbsd.c netbsd.h libaout.h $(INCDIR)/bfdlink.h \
  763.   aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
  764.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
  765.  
  766. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  767.